﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace cczEdit.DramaDialog
{
    public partial class EditHeroTouchedDialog : Form
    {
        public EditHeroTouchedDialog(List<Hero> heros)
        {
            InitializeComponent();
            foreach (Hero hero in heros)
            {
                comboBox1.Items.Add(hero.name);
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {

            Form1 mainForm = (Form1)this.Owner;
            mainForm.ucDrama.editHeroTouched(comboBox1.Text);
            this.Hide();
          
        }
    }
}
